package com.whlilong.jxc.treemodel;

import java.util.ArrayList;
import java.util.List;

public class DepartInfoTreeParent {
private String departName;
	
	private List<DepartInfoTreeChildren> departInfoTreeChildren;
	
	public DepartInfoTreeParent(String departName){
		this.departName = departName;
		departInfoTreeChildren = new ArrayList<DepartInfoTreeChildren>();
		
	}
	
	//添加子节点
	public void add(DepartInfoTreeChildren sp){
		departInfoTreeChildren.add(sp);
		sp.setDepartInfoTreeParent(this);
	}

	public String getDepartName() {
		return departName;
	}

	public void setDepartName(String departName) {
		this.departName = departName;
	}

	public List<DepartInfoTreeChildren> getDepartInfoTreeChildren() {
		return departInfoTreeChildren;
	}

	public void setDepartInfoTreeChildren(List<DepartInfoTreeChildren> departInfoTreeChildren) {
		this.departInfoTreeChildren = departInfoTreeChildren;
	}


}
